package cn.lzx.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by lizhenxing on 2017/9/5.
 */
@Component
public class ScheduleDemo {

    @Scheduled(cron = "0/2 * * * * ?")
    public void doSchedule(){
        System.out.println("say");
    }
}
